# -*- coding: utf-8 -*-
from odoo import models, api, fields, tools
from odoo.exceptions import UserError
import re


class data_indicator(models.Model):

    _name = "datcent.data_indicator"
    _description = "数据指标"
    _table = "datcent_data_indicator"
    _order = "sequence"

    sequence = fields.Integer(string="排序",translate = 0)
    code = fields.Char(string="编码",translate = 0)
    name = fields.Char(string="指标名称",help = '请输入指标名称',required = 1,translate = 0)
    indicator_category_id = fields.Many2one(string="指标分类",comodel_name = 'datcent.data_category',translate = 0)
    uom_id = fields.Many2one(string="计量单位",comodel_name = 'uom.uom',translate = 0)
    memo = fields.Html(string="备注说明",translate = 0)
